<?php

return [
    'defaults'         => [
        'response_type'     => 'array',
        'use_laravel_cache' => true,
        'log'               => [
            'level' => env('WECHAT_LOG_LEVEL', 'debug'),
            'file'  => env('WECHAT_LOG_FILE', storage_path('logs/wechat.log')),
        ],
    ],

    'official_account' => [
        'default' => [
            'app_id'  => env('WECHAT_OFFICIAL_ACCOUNT_APPID', 'your-app-id'),         // AppID
            'secret'  => env('WECHAT_OFFICIAL_ACCOUNT_SECRET', 'your-app-secret'),    // AppSecret
            'token'   => env('WECHAT_OFFICIAL_ACCOUNT_TOKEN', 'your-token'),           // Token
            'aes_key' => env('WECHAT_OFFICIAL_ACCOUNT_AES_KEY', ''),                 // EncodingAESKey
        ],
    ],
	
     'mini_program' => [
         'default' => [
	         'app_id'  => env('WECHAT_MINI_PROGRAM_APPID', ''),
	         'secret'  => env('WECHAT_MINI_PROGRAM_SECRET', ''),
	         'token'   => env('WECHAT_MINI_PROGRAM_TOKEN', ''),
	         'aes_key' => env('WECHAT_MINI_PROGRAM_AES_KEY', ''),
         ],
     ],
	
	 'open_platform' => [
	     'default' => [
	         'app_id'  => env('WECHAT_OPEN_PLATFORM_APPID', ''),
	         'secret'  => env('WECHAT_OPEN_PLATFORM_SECRET', ''),
	         'token'   => env('WECHAT_OPEN_PLATFORM_TOKEN', ''),
	         'aes_key' => env('WECHAT_OPEN_PLATFORM_AES_KEY', ''),
             'oauth'=> [
                'scopes' =>array_map("trim",explode(",","snsapi_userinfo")),
                'callback'=> '127.0.0.1',
	           ],
            'response_type' => 'array',
	    ],
    ],
];
